x11: Don't assume valid type
authorDr. David Alan Gilbert <dave@treblig.org>
Sat, 30 Jul 2022 15:39:18 +0000 (16:39 +0100)
committerDr. David Alan Gilbert <dave@treblig.org>
Sat, 30 Jul 2022 21:11:59 +0000 (22:11 +0100)
commitdbc4e18bf8ca175262cfb4c28b232b9d5ede3609
tree16bbc7602a36983be59ad976d3da71391c7e9769
parent924da0e84b3969d1eda80e3bcf2d3b8ab6ce6085
x11: Don't assume valid type

If we get an invalid TARGETS reply, we might not have a valid 'type',
which ends up as NULL and segs in the g_str_equal.

(This is probably fallout from my fix 506566b6a4c3a9, which I still
can't reproduce reliably, so the last one just moved the seg a bit
further along, and we still don't know who is sending a bad TARGETS).

This corresponds to:
https://bugzilla.redhat.com/show_bug.cgi?id=2062143
gdk/x11/gdkclipboard-x11.c